package com.multi.thread.chapter02.demo11;

import com.multi.thread.chapter02.demo11.OuterClass.InnerClass;

public class Run {
	
	public static void main(String[] args) {
		final InnerClass innerClass = new InnerClass();
		
		Thread thread1 = new Thread(new Runnable() {
			@Override
			public void run() {
				innerClass.method1();
			}
		}, "A");
		
		Thread thread2 = new Thread(new Runnable() {
			@Override
			public void run() {
				innerClass.method2();
			}
		}, "B");
		
		thread1.start();
		thread2.start();
	}

}
